﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRM.DAL;
using HRM.Entity;

namespace HRM.BIZ
{
    public class LeaveTypeBiz : BaseBiz
    {
        public List<LeaveType> GetAll()
        {
            return new LeaveTypeDAL().GetAll();
        }

        public LeaveType GetByID(int ID)
        {
            return new LeaveTypeDAL().GetByID(ID);
        }

        public LeaveType Add(LeaveType item)
        {
            return new LeaveTypeDAL().Add(item);
        }

        public LeaveType Update(LeaveType item)
        {
            return new LeaveTypeDAL().Update(item);
        }

        public void Delete(int ID)
        {
            new LeaveTypeDAL().Delete(ID);
        }
    }
}
